<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
/* @var $searchModel common\modules\rbac\backend\models\searchs\AuthItem */

$this->title = Yii::t('backend', 'Permissions');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="role-index">

	<p>
        <?= Html::a(Yii::t('backend', 'Create {modelClass}', ['modelClass' => Yii::t('backend', 'Permission')]), ['create'], ['class' => 'btn btn-success'])?>
    </p>

    <?php
    Pjax::begin([
        'enablePushState' => false
    ]);
    echo GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            [
                'class' => 'yii\grid\SerialColumn'
            ],
            [
                'attribute' => 'name',
                'label' => Yii::t('backend', 'Name')
            ],
            [
                'attribute' => 'description',
                'label' => Yii::t('backend', 'Description')
            ],
            [
                'class' => 'yii\grid\ActionColumn'
            ]
        ]
    ]);
    Pjax::end();
    ?>

</div>
